﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VWise_DAO
{
  public class CDBSettings
  {
    protected string strDBServer = "localhost";
    public string DBServer
    {
      get { return strDBServer; }
      set
      {
        if (value != "")
          strDBServer = value;
      }
    }
    protected int iDBPort = 5432;
    public int DBPort
    {
      get
      { return iDBPort; }
      set
      {
        if (value > 0)
          iDBPort = value;
      }
    }
    protected string strDBUser = "sa";
    public string DBUser
    {
      get { return strDBUser; }
      set
      {
        if (value != "")
          strDBUser = value;
      }
    }

    protected string strDBPassword = "root";
    public string DBPassword
    {
      get { return strDBPassword; }
      set
      {
        if (value != "")
          strDBPassword = value;
      }
    }

    protected string strDBDatabase = "VWISE_DHL";
    public string DBDatabase
    {
      get { return strDBDatabase; }
      set
      {
        if (value != "")
          strDBDatabase = value;
      }
    }
  }
}
